package main

import (
	"fmt"
	"go-admin/src/module"
	"go-admin/src/router"
	"net/http"
	"time"
)

func main() {


	RunServer()
}
func RunServer() {

	Router:= router.Routers()
	address := fmt.Sprintf(":%d", module.DefaultConf.System.Addr)

	serv:=&http.Server{
		Addr:           address,
		Handler:        Router,
		ReadTimeout:    10 * time.Second,
		WriteTimeout:   10 * time.Second,
		MaxHeaderBytes: 1 << 20,
	}

	serv.ListenAndServe()

}
